inotify 缺陷以及解决方案
Inotify reports only events that a user-space program triggers
through the filesystem API. As a result, it does not catch
remote events that occur on network filesystems. (Applications
must fall back to polling the filesystem to catch such events.)
Furthermore, various pseudo-filesystems such as /proc, /sys, and
/dev/pts are not monitorable with inotify.
https://man7.org/linux/man-pages/man7/inotify.7.html
后续
发现只要在一台主机上,被不同 namespace 访问,都是可以获取到事件的。所以需要将 pod 调度在同一个 node 即可